package com.carcenter.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carcenter.common.model.dto.ProductQueryDto;
import com.carcenter.common.model.dto.SaveProductDto;
import com.carcenter.common.model.vo.ProductVo;
import com.carcenter.common.result.Result;
import com.carcenter.order.entity.Products;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author car
 * @since 2025-07-16
 */
public interface IProductsService extends IService<Products> {

    IPage<ProductVo> getList(Integer pageNum, Integer pageSize, ProductQueryDto queryDto);

    Result saveProduct(SaveProductDto saveProductDto);

    Result match(Integer id);

    Result editProduct(SaveProductDto saveProductDto);
}
